package net.lzzy.practices.services;

import net.lzzy.practices.entities.User;


import java.util.List;
import java.util.UUID;

/**
 * @author zly on 2022/5/9
 * Description:
 */

public interface UserService {
    User check(String userName, String password);
    boolean isUserNameOccpuied(String userName);
    User register(User user);
    List<User> get(); //获取所有的用户
    List<User> get(int page, int size); //分页获取所有的用户
    User getById(UUID id);
    Integer count(); //用户分页的数量
    List<User> search(String kw); //通过关键词搜索
    List<User> getApplying(boolean applying); //申请
    User approveTeacher(UUID id);//同意申请
    User declineTeacher(UUID id);//拒绝申请
    User banUser(UUID id);//禁止用户
    String getSalt(String userName);//验证用户

}